import request from '@/util/ajax.js'

export function getRolesByUserAPI(reqData) {
  return request({
    url: '/back_front/users_roles/getRolesByUserService',
    method: 'get',
    params: reqData
  })
}

export function getUsersByRoleAPI(reqData) {
  return request({
    url: '/back_front/users_roles/getUsersByRoleService',
    method: 'get',
    params: reqData
  })
}

export function changeUsersByRoleAPI(reqData) {
  return request({
    url: '/back_front/users_roles/changeUsersByRoleService',
    method: 'post',
    data: reqData
  })
}

export function changeRolesByUserAPI(reqData) {
  return request({
    url: '/back_front/users_roles/changeRolesByUserService',
    method: 'post',
    data: reqData
  })
}
